let h
for (let i = 1; i <= 9; i++) {
  for(let j = 1; j <= i; j++){
    h = i * j
    document.write(i + "x" + j + "=" + h+"  " )
  }
  document.write("<br>")
}